import React, { Component } from "react";

// JSX {}当js解析 其他当xml解析
class App extends Component {
  render() {
    const child1 = React.createElement("li", null, "Tang");
    const child2 = React.createElement("li", null, "Tery");
    const parent = React.createElement(
      "ul",
      { className: "list" },
      child1,
      child2
    );
    const flag = false
    return (
      <div>
        <ul className="my-list">
          <li>{flag? 'tang':  'ff'}tt</li>
          <li>te</li>
        </ul>
        {parent}
      </div>
    );
  }
}
export default App;
